/** A medical pack that restores health.
 */
function MedPackItem()
{
}
MedPackItem.prototype = new Item("medical pack", "+", new Color(1, 0.25, 0.25), null, null);
MedPackItem.prototype.use = function(user, target)
{
	if(!target.isMobile)
	{
		logWindow.pushMessage("%f0Medical packs must be used on people or animals.");
		return;
	}
	target.takeDamage(-50, user);
	if(user == player)
		logWindow.pushMessage("%c0You used the medical pack.");
	else
		lowWindow.pushMessage("%c0The " + user.name + " used a medical pack.");
}
Entity.registerCtor(MedPackItem, 6);
